package com.bobo.controller;

import cn.hutool.core.bean.BeanUtil;
import com.bobo.base.R;
import com.bobo.pojo.ProdTag;
import com.bobo.service.ProdTagService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/prod/tag")
@Tag(name = "商品分组标签接口")
@AllArgsConstructor
public class ProdTagController {
    private ProdTagService prodTagService;
    /**
     * 商品分组标签列表接口
     */
    @GetMapping("/prodTagList")
    @Operation(summary = "商品分组标签列表" , description = "获取所有的商品分组列表")
    public R<List<ProdTag>> getProdTagList() {
        List<ProdTag> prodTagList = prodTagService.listProdTag();
        return R.success(prodTagList);
    }

}
